package com.gkzf.ai.module.crm.controller.admin.simpleCredit.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.gkzf.ai.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.gkzf.ai.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - CRM 征信报告简版分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CreditReportSimplePageReqVO extends PageParam {

    @Schema(description = "姓名", example = "王五")
    private String name;

    @Schema(description = "证件号码")
    private String idNumber;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "创建可分配的部门ID", example = "29278")
    @ExcelProperty("创建可分配的部门ID")
    private Long deptId;

    @Schema(description = "0 ：未分配   1：已分配")
    @ExcelProperty("0 ：未分配   1：已分配")
    private Integer isAllocation;

    @Schema(description = "分配的业务员", example = "12036")
    @ExcelProperty("分配的业务员")
    private Long userId;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}